package com.example.hotel.dao;

import com.example.hotel.entity.Equip;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import com.example.hotel.entity.Item;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ItemDao {

    int insert(Item item);

    List<Item> findAll();

    @Delete("delete from item where item_id = #{item_id}")
    int deleteById(int item_id);

    int update(Item item);
}
